﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QAReportControl.ascx.cs" Inherits="SimplePMT.Control.QAReportControl" %>
<form name="reportForm" id="reportForm">
<input type="hidden" name="ReportID" id="ReportID" value="<%= reportId %>" />
<table width="100%" cellpadding=3>
    <tr>
        <td style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE"><%= project %> : <b><%= releaseNumber %></b></td>
    </tr>
    <tr>
        <td style="border:1px solid #6893cf;" bgcolor="#ffffff" valign=top>
            <div id="TaskView">
            <table width="100%" align=center>
                <tr>
                    <td align=right><b>Report Date:</b></td>
                    <td><%= qaReport.ReportDate.ToShortDateString() %></td>
                </tr>
                <tr>
                    <td align=right valign=top><b>Summary:</b></td>
                    <td><%= FormElement.TextArea(76, 8, "Summary", qaReport.Summary, "", edit) %></td>
                </tr>
                <tr>
                    <td align=right><b>Passed QA:</b></td>
                    <td style="white-space:nowrap;"><%= FormElement.CheckBox("Passed", "1", "Yes|No", "", edit, qaReport.Passed) %></td>
                </tr>
                <tr>
                    <td align=right><b>Final Revision:</b></td>
                    <td style="white-space:nowrap;"><%= FormElement.TextBox(3, "RevisionNumber", qaReport.RevisionNumber.ToString(), "", true) %></td>
                </tr>
                <tr>
                    <td colspan=2 height=2></td>
                </tr>
                <tr>
                    <td align=right></td>
                    <td align=right>
                    <button type="button" onclick="top.win.close();">Cancel</button>&nbsp;&nbsp;&nbsp;&nbsp;
                    <button type="button" onclick="saveChanges();">Save Report</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
                
            </table>
            </div>
        </td>
    </tr>
 </table>
 <p>
 <table width="100%" cellpadding=3>
    <tr>
        <td style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE"><b>Report Lines</b></td>
    </tr>
    <tr>
        <td style="border:1px solid #6893cf;" bgcolor="#ffffff" valign=top>
            <table width="100%" align=center>
                <tr>
                    <td colspan=2>No report lines found.</td>
                </tr>
                <tr>
                    <td colspan=2 height=2></td>
                </tr>
                <tr>
                    <td align=right></td>
                    <td align=right>
                    <button type="button" onclick="addReportLine(<%= reportId %>);">Add Report Line</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
                
            </table>
            </div>
        </td>
    </tr>
 </table>
    </form>
    <a name="bottom"></a>